cssshadow: plug a cairo_surface_t leak
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 16 Oct 2012 15:54:33 +0000 (11:54 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 16 Oct 2012 17:07:51 +0000 (13:07 -0400)
We were never destroying the cairo surface we use for blurring, which
would lead to a huge leak.

https://bugzilla.gnome.org/show_bug.cgi?id=686209

gtk/gtkcssshadowvalue.c

index be215972adf0eb029e756fa1706f71bad34a4eae..40dd3a024bbc53388234c40e079ae4be7ca643a3 100644 (file)
@@ -363,6 +363,7 @@ gtk_css_shadow_value_finish_drawing (const GtkCssValue *shadow,
   cairo_paint (original_cr);
 
   cairo_destroy (cr);
+  cairo_surface_destroy (surface);
 
   return original_cr;
 }